include(TDEVersion)
cmake_minimum_required(VERSION ${TDE_CMAKE_MINIMUM_VERSION})
tde_set_project_version()

project(tdeio_gemini)

include(FindPkgConfig)
include(TDEMacros)
include(TDESetupPaths)

tde_setup_paths()

# option(BUILD_ALL "Build all" OFF)
# option(BUILD_DOC "Build documentation" ${BUILD_ALL})
# option(BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL})

## Find Packages

find_package(TQt)
find_package(TDE)

## Configuration

tde_setup_architecture_flags()
tde_setup_largefiles()

if(WITH_GCC_VISIBILITY)
  tde_setup_gcc_visibility()
endif(WITH_GCC_VISIBILITY)


## Source Directories

add_subdirectory(src)

## Global Flags

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
